package com.sanyu.pojo.vo;

import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

@Data
public class WorkRecordVO implements Serializable {
    //ID
    private Long id;
    //设备ID
    private Long deviceId;
    //接单维修人员ID
    private Long repairmanId;
    //审核人员ID
    private Long judgemanId;
    //维修项目ID
    private String repairTypeId;
    //工单描述
    private String description;
    //结果(progress未完成  success成功完成  cancel已经取消)
    private String result;
    //状态(pending_processing待处理  pending_approval待审核  over已结束)
    private String status;
    //总花费(订单价值)
    private BigDecimal money;
    //维修完成提交审核时间
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime timeApproval;
    //审核通过时间
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime timeProcess;
    //报修完成时间
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime timeCompleted;
    //创建时间
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;
    //最后修改时间
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime updateTime;
}
